import request ,{baseURLAi} from "@/utils/request";

// 获取文件配置
export const fileDeploy = (data) => {
  return request({
    url: "/api/fileDeploy",
    method: "GET",
    data,
  });
};

// 登录
// 三方登录
export const login = (data) => {
  return request({
    url: "/api/login",
    method: "POST",
    data,
  });
};
// 小程序用户信息完善
export const appletUserInfo = (data) => {
  return request({
    url: "/api/appletUserInfo",
    method: "POST",
    data,
  });
};
// 小程序用户手机号完善
export const appletPhone = (data) => {
  return request({
    url: "/api/appletPhone",
    method: "POST",
    data,
  });
};
// 获取用户信息
export const getUserInfo = (data) => {
  return request({
    url: "/api/userInfo",
    method: "GET",
    data,
  });
};
// 更新用户信息
export const updateUserInfo = (data) => {
  return request({
    url: "/api/userInfoEdit",
    method: "POST",
    data,
  });
};


// 退出登录
export const out = (data) => {
  return request({
    url: "/api/out",
    method: "GET",
    data,
  });
};

// 首页
// 景区轮播图
export const bannerList = (data) => {
  return request({
    url: "/api/bannerList",
    method: "GET",
    data,
  });
};
// 热门景区
export const scenicSpotHot = (data) => {
    return request({
      url: "/api/scenicSpotHot",
      method: "GET",
      data,
    });
};
// 热门景点
export const spotPointsHot = (data) => {
  return request({
    url: "/api/spotPointsHot",
    method: "GET",
    data,
  });
};
// 景区列表
export const scenicSpotList = (data) => {
    return request({
      url: "/api/scenicSpotList",
      method: "GET",
      data,
    });
};
// 景点列表
export const spotPointsList = (data) => {
  return request({
    url: "/api/spotPointsList",
    method: "GET",
    data,
  });
};
// 景区详情
export const scenicSpotInfo = (data) => {
    return request({
      url: "/api/scenicSpotInfo",
      method: "GET",
      data,
    });
};
//景点分类
export const getPointsCate= (data) => {
  return request({
    url: "/api/pointsCate",
    method: "GET",
    data,
  });
};



// 个人中心

// 订单中心-订单列表
export const orderList = (data) => {
    return request({
      url: "/api/orderList",
      method: "GET",
      data,
    });
};
// 订单中心-景区AR商品下单
export const arGoodsPlaceOrder = (data) => {
    return request({
      url: "/api/arGoodsPlaceOrder",
      method: "POST",
      data,
    });
};
// 订单中心-AR订单发起支付
export const orderPay = (data) => {
    return request({
      url: "/api/orderPay",
      method: "POST",
      data,
    });
};

// 游览日志-景区浏览列表
export const scenicWalkList = (data) => {
    return request({
      url: "/api/scenicWalkList",
      method: "GET",
      data,
    });
};
// 游览日志-当前景区浏览列表
export const walkList = (data) => {
    return request({
      url: "/api/walkList",
      method: "GET",
      data,
    });
};
// 游览日志-景区浏览详情
export const walkInfo = (data) => {
    return request({
      url: "/api/walkInfo",
      method: "GET",
      data,
    });
};



//-------------------AR景区导航

// 景区AR导航权限
export const spotAuth = (data) => {
  return request({
    url: "/api/spotAuth",
    method: "GET",
    data,
  });
};
// 景区AR导航发起体验
export const naviExperience = (data) => {
  return request({
    url: "/api/naviExperience",
    method: "POST",
    data,
  });
};
// 景区Ar商品购买
export const spotArGoods = (data) => {
  return request({
    url: "/api/spotArGoods",
    method: "GET",
    data,
  });
};
// 景区导航地图 缩略图 范围等
export const naviMaps = (data) => {
  return request({
    url: "/api/naviMaps",
    method: "GET",
    data,
  });
};
// 景区景点位置 marks
export const naviScenicSpots = (data) => {
  return request({
    url: "/api/naviScenicSpots",
    method: "GET",
    data,
  });
};
// 景区AR开始导航
export const naviStart = (data) => {
  return request({
    url: "/api/naviStart",
    method: "POST",
    data,
  });
};
// 景区AR导航行走记录更新
export const naviRenew = (data) => {
  return request({
    url: "/api/naviRenew",
    method: "POST",
    data,
  });
};
// 景点打卡
export const naviScenicSpotsClock = (data) => {
  return request({
    url: "/api/naviScenicSpotsClock",
    method: "POST",
    data,
  });
};
// 我的景点打卡列表
export const naviScenicSpotsClockList = (data) => {
  return request({
    url: "/api/clockList",
    method: "GET",
    data,
  });
};


//-----AI 对话
// 语音转换未字符串
export const speech2text = (data) => {
  return request({
    url: "/api/voice/speech2text",
    method: "POST",
    baseURL:baseURLAi,
    data,
  });
};
// 获取用户历史聊天信息
export const history = (data) => {
  return request({
    url: "/api/chat/history",
    method: "GET",
    baseURL:baseURLAi,
    data,
  });
};
// 结合历史聊天信息的对话服务
export const service = (data) => {
  return request({
    url: "/api/chat/service",
    method: "POST",
    baseURL:baseURLAi,
    data,
  });
};

// 协议详情
export const treatyInfo = (data) => {
  return request({
    url: "/api/treatyInfo",
    method: "GET",
    data,
  });
};


// oss上传获取签名
export const uploadSignature = (data) => {
  return request({
    url: "/api/aliSignature",
    method: "POST",
    data,
  });
};



//获取ai旅拍模板
export const getTemplateSet = (data) => {
  return request({
    url: "/api/templateSet",
    method: "GET",
    data,
  });
};


//获取ai旅拍模型
export const getModelSet = (data) => {
  return request({
    url: "/api/modelSet",
    method: "GET",
    data,
  });
};


//获取旅拍合影
export const aiPhotoInitiate = (data) => {
  return request({
    url: "/api/aiPhotoInitiate",
    method: "POST",
    data,
  });
};

//获取旅拍合影列表
export const aiPhotoList = (data) => {
  return request({
    url: "/api/aiPhotoList",
    method: "GET",
    data,
  });
};

//
export const aiPhotoDel = (data) => {
  return request({
    url: "/api/aiPhotoDel",
    method: "GET",
    data,
  });
};

//
export const aiPhotoInfo = (data) => {
  return request({
    url: "/api/aiPhotoInfo",
    method: "GET",
    data,
  });
};

//景区推荐路线
export const getRouteList = (data) => {
  return request({
    url: "/api/routeSet",
    method: "GET",
    data,
  });
};
//景区推荐详情
export const getRouteDetail = (data) => {
  return request({
    url: "/api/routeInfo",
    method: "GET",
    data,
  });
};

//最新公告
export const noticeNew = (data) => {
  return request({
    url: "/api/noticeNew",
    method: "GET",
    data,
  });
};


//公告详情
export const noticeInfo = (data) => {
  return request({
    url: "/api/noticeInfo",
    method: "GET",
    data,
  });
};


//公告列表
export const noticeList = (data) => {
  return request({
    url: "/api/noticeList",
    method: "GET",
    data,
  });
};

